package me.ywd.hystrix.controller;

import me.ywd.hystrix.service.HytrixRibbonDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Comments：
 * Author：Jay Chang
 * Create Date：2017/7/28
 * Modified By：
 * Modified Date：
 * Why & What is modified：
 * Version：v1.0
 */
@RestController
public class HytrixRibbonDemoController {
    @Autowired
    private HytrixRibbonDemoService hytrixRibbonDemoService;

    @GetMapping("hello")
    public String hello(){
        return hytrixRibbonDemoService.consume();
    }
}
